package com.gdougms.service.Impl;

import com.gdougms.entity.Announcement;
import com.gdougms.mapper.AnnouncementMapper;
import com.gdougms.service.AnnouncementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AnnouncementServiceImpl implements AnnouncementService {
    @Autowired
    AnnouncementMapper announcementMapper;

    @Override
    public int addAnnouncement(String title, String content, String fileUrl, Integer pubuserId) {
        return announcementMapper.addAnnouncement(title, content, fileUrl, pubuserId);
    }

    @Override
    public List<Announcement> announcementList() {
        return announcementMapper.announcementList();
    }
}
